//
//  FileDownload.h
//  iengage
//
//  Created by Luis Ziliani on 2/12/09.
//  Copyright 2009 Manas. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "HttpRequestWithLogin.h"



@interface FileDownload : HttpRequestWithLogin {

	NSString *path;
	
	NSMutableData *data;
}

@property (retain) NSString* path;

- (void) startDownloadURL:(NSString *) url withUser:(NSString *)usr andPassword:(NSString *) pass file:(NSString*)file delegate:(id<HttpRequestDelegate>) dlg;

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;

- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error;

- (void)connectionDidFinishLoading:(NSURLConnection *)connection;

@end
